﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;

namespace DAO
{
    public class UsersFactory:DAOFactory
    {
        public override object createObject()
        {
            throw new NotImplementedException();
        }

        public static int UpdateLastLogInTime(long userid)
        {
            SqlParameter[] pars = new SqlParameter[1];
            pars[0] = new SqlParameter("userid", userid);

            SqlConnection conn = null;
            return Connection.ExecuteNonQuerySP("SP_UpdateUserLoginTime", conn, pars);
            return -1;
        }
    }
}
